﻿@model IEnumerable<SanQiOther.Models.v_member>
@{
    ViewBag.Title = "Index";
    ViewBag.pageHeader = "辅助功能";
    ViewBag.pageDes = "班车设置";
}
@using (Html.BeginForm("Index", "BusSet", FormMethod.Post, new { @class = "form-horizontal" }))
{
    <div class="box box-primary">
        <div class="box-header with-border">
            <div>
                <div class="box-tools">
                    <label style="margin-left: 20px;">所属部门</label>&nbsp;&nbsp;
                    @Html.DropDownList("DeptList")
                    <label style="margin-left: 20px;">姓名</label>&nbsp;&nbsp;
                    @Html.TextBox("MemberName")&nbsp;&nbsp;
                    <input type="submit" value="查询" class="btn btn-primary" />

                </div>
            </div>
        </div>
        <!-- /.box-header -->
        <div class="box-body">
            <table id="roleList" class="table table-bordered table-striped">
                <thead>
                    <tr>
                        <th>
                            @Html.DisplayNameFor(model => model.id)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.car)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.name)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.deptmc)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.rzsj)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.lzsj)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.islz)
                        </th>
                        <th>

                        </th>
                    </tr>
                </thead>
                <tbody>
                    @foreach (var item in Model)
                    {
                        <tr>
                            <td>
                                @Html.DisplayFor(modelItem => item.id)
                            </td>
                            <td>
                                @{
                                    @Html.Raw(PubClass.GetCar(Convert.ToInt16(item.car)))
                                }
                            </td>
                            <td>
                                @Html.Raw(PubClass.GetLsg(item.isls.ToString())) @Html.DisplayFor(modelItem => item.name)
                            </td>
                            <td>
                                @Html.DisplayFor(modelItem => item.deptmc)
                            </td>
                            <td>
                                @Html.DisplayFor(modelItem => item.rzsj)
                            </td>
                            <td>
                                @Html.DisplayFor(modelItem => item.lzsj)
                            </td>
                            <td>
                                @{
                                    @Html.Raw(PubClass.GetLz(item.islz.ToString()))
                                }
                            </td>
                            <td>
                                @Html.ActionLink("修改", "Detail", new { id = item.id })
                            </td>
                        </tr>
                                    }
                </tbody>
            </table>
        </div>
        <!-- /.box-body -->
    </div>
                                    }
@section Styles {
    @Styles.Render("~/bundles/datatables")
}
@section Scripts {
    @Scripts.Render("~/bundles/datatablesjq")
    @Scripts.Render("~/bundles/datatablesbs")
    <script>
        $(function () {
            $("#roleList").DataTable(
                {
                    "columnDefs": [
                       { "targets": [0], "visible": false }
                    ],
                    "autoWidth": true,
                    "ordering": false,
                    "language": {
                        "url": "/Content/plugins/datatables/Chinese.json"
                    }
                });
        });
    </script>
}



